﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="true"
    CodeFile="ProjectView.aspx.cs" Inherits="ProjectView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="body" runat="Server">
    <div class="right_container">
        <div class="right_title">
                选择项目期
        </div>
        <div class="right_contract">
            <div id="ProjectList" runat="server">
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="script" runat="Server">
    <link href="../Resource/css/cs_project.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(document).ready(function () {
            $(".pn > span,.pn > img").click(function () {
                $(this).parent().find(".childDiv").toggle();
                changeImg(this);

                //alert($(this).parent().find("img").attr("src"));
            });


            $(".gpn>span,.gpn>img").click(function () {
                $(this).parent().find(".pn").toggle();

                    changeImg(this);

                //alert($(this).parent().find("img").attr("src"));
            });
        });

        var changeImg = function (obj) {
            if ($(obj).parent().children().first().attr("src") == '/images/TVPLUS.GIF') {
                $(obj).parent().children().first().attr("src", '/images/TVMINUS.GIF');
            }
            else {
                $(obj).parent().children().first().attr("src", '/images/TVPLUS.GIF');
            }
        }
//        var changeImg = function (obj) {
//        
//            if ($(obj).parent().find("img").attr("src") == '/images/TVPLUS.GIF') {
//                $(obj).parent().find("img").attr("src", '/images/TVMINUS.GIF');
//            }
//            else {
//                $(obj).parent().find("img").attr("src",'/images/TVPLUS.GIF');
//            }
//        }
        var OpenDig = function (id, type) {
            //alert(screen.height);
            var url = type == 0 ? "SC_Incurred.aspx?id=" : "SC_UnHappen.aspx?id=";
            if (window.showModalDialog) {
                win = window.showModalDialog(url + id, window, "dialogTop=0;dialogLeft=0;dialogWidth=" + (screen.width) + ";dialogHeight=" + (screen.height));
            }
            else {
                win = window.open(url + id, "dialogTop=0;dialogLeft=0;dialogWidth=" + screen.width + ";dialogHeight=" + screen.height);
            }
        }
    </script>
</asp:Content>
